home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / MacPerl 5.1.3 / Mac_Perl_513_src / perl5.002 / config_h.SH < prev    next >
Encoding:
Text File  |  1996-04-06  |  48.5 KB  |  1,463 lines  |  [TEXT/MPS ]

  1. case $CONFIG in
  2. '')
  3.     if test -f config.sh; then TOP=.;
  4.     elif test -f ../config.sh; then TOP=..;
  5.     elif test -f ../../config.sh; then TOP=../..;
  6.     elif test -f ../../../config.sh; then TOP=../../..;
  7.     elif test -f ../../../../config.sh; then TOP=../../../..;
  8.     else
  9.         echo "Can't find config.sh."; exit 1
  10.     fi
  11.     . $TOP/config.sh
  12.     ;;
  13. esac
  14. case "$0" in
  15. */*) cd `expr X$0 : 'X\(.*\)/'` ;;
  16. esac
  17. echo "Extracting config.h (with variable substitutions)"
  18. sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#define!' -e 's!^#un-def!#undef!'
  19. /*
  20.  * This file was produced by running the config_h.SH script, which
  21.  * gets its values from config.sh, which is generally produced by
  22.  * running Configure.
  23.  *
  24.  * Feel free to modify any of this as the need arises.  Note, however,
  25.  * that running config_h.SH again will wipe out any changes you've made.
  26.  * For a more permanent change edit config.sh and rerun config_h.SH.
  27.  *
  28.  * \$Id: Config_h.U,v 3.0.1.4 1995/09/25 09:10:49 ram Exp $
  29.  */
  30.  
  31. /* Configuration time: $cf_time
  32.  * Configured by: $cf_by
  33.  * Target system: $myuname
  34.  */
  35.  
  36. #ifndef _config_h_
  37. #define _config_h_
  38.  
  39. /* MEM_ALIGNBYTES:
  40.  *    This symbol contains the number of bytes required to align a
  41.  *    double. Usual values are 2, 4 and 8.
  42.  */
  43. #define MEM_ALIGNBYTES $alignbytes    /**/
  44.  
  45. /* BIN:
  46.  *    This symbol holds the path of the bin directory where the package will
  47.  *    be installed. Program must be prepared to deal with ~name substitution.
  48.  */
  49. #define BIN "$bin"    /**/
  50.  
  51. /* CAT2:
  52.  *    This macro catenates 2 tokens together.
  53.  */
  54. #if $cpp_stuff == 1
  55. #define CAT2(a,b)a/**/b
  56. #define CAT3(a,b,c)a/**/b/**/c
  57. #define CAT4(a,b,c,d)a/**/b/**/c/**/d
  58. #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e
  59. #define STRINGIFY(a)"a"
  60.         /* If you can get stringification with catify, tell me how! */
  61. #endif
  62. #if $cpp_stuff == 42
  63. #define CAT2(a,b)a ## b
  64. #define CAT3(a,b,c)a ## b ## c
  65. #define CAT4(a,b,c,d)a ## b ## c ## d
  66. #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e
  67. #define StGiFy(a)# a
  68. #define STRINGIFY(a)StGiFy(a)
  69. #define SCAT2(a,b)StGiFy(a) StGiFy(b)
  70. #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c)
  71. #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d)
  72. #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e)
  73. #endif
  74. #ifndef CAT2
  75. #include "Bletch: How does this C preprocessor catenate tokens?"
  76. #endif
  77.  
  78. /* CPPSTDIN:
  79.  *    This symbol contains the first part of the string which will invoke
  80.  *    the C preprocessor on the standard input and produce to standard
  81.  *    output.     Typical value of "cc -E" or "/lib/cpp", but it can also
  82.  *    call a wrapper. See CPPRUN.
  83.  */
  84. /* CPPMINUS:
  85.  *    This symbol contains the second part of the string which will invoke
  86.  *    the C preprocessor on the standard input and produce to standard
  87.  *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  88.  *    to specify standard input, otherwise the value is "".
  89.  */
  90. #define CPPSTDIN "$cppstdin"
  91. #define CPPMINUS "$cppminus"
  92.  
  93. /* HAS_ALARM:
  94.  *    This symbol, if defined, indicates that the alarm routine is
  95.  *    available.
  96.  */
  97. #$d_alarm HAS_ALARM        /**/
  98.  
  99. /* HASATTRIBUTE:
  100.  *    This symbol indicates the C compiler can check for function attributes,
  101.  *    such as printf formats. This is normally only supported by GNU cc.
  102.  */
  103. #$d_attribut HASATTRIBUTE     /**/
  104. #ifndef HASATTRIBUTE
  105. #define __attribute__(_arg_)
  106. #endif
  107.  
  108. /* HAS_BCMP:
  109.  *    This symbol is defined if the bcmp() routine is available to
  110.  *    compare blocks of memory.
  111.  */
  112. #$d_bcmp HAS_BCMP    /**/
  113.  
  114. /* HAS_BCOPY:
  115.  *    This symbol is defined if the bcopy() routine is available to
  116.  *    copy blocks of memory.
  117.  */
  118. #$d_bcopy HAS_BCOPY    /**/
  119.  
  120. /* HAS_BZERO:
  121.  *    This symbol is defined if the bzero() routine is available to
  122.  *    set a memory block to 0.
  123.  */
  124. #$d_bzero HAS_BZERO    /**/
  125.  
  126. /* CASTI32:
  127.  *    This symbol is defined if the C compiler can cast negative
  128.  *    or large floating point numbers to 32-bit ints.
  129.  */
  130. #$d_casti32    CASTI32        /**/
  131.  
  132. /* CASTNEGFLOAT:
  133.  *    This symbol is defined if the C compiler can cast negative
  134.  *    numbers to unsigned longs, ints and shorts.
  135.  */
  136. /* CASTFLAGS:
  137.  *    This symbol contains flags that say what difficulties the compiler
  138.  *    has casting odd floating values to unsigned long:
  139.  *        0 = ok
  140.  *        1 = couldn't cast < 0
  141.  *        2 = couldn't cast >= 0x80000000
  142.  *        4 = couldn't cast in argument expression list
  143.  */
  144. #$d_castneg    CASTNEGFLOAT        /**/
  145. #define CASTFLAGS $castflags        /**/
  146.  
  147. /* HAS_CHOWN:
  148.  *    This symbol, if defined, indicates that the chown routine is
  149.  *    available.
  150.  */
  151. #$d_chown HAS_CHOWN        /**/
  152.  
  153. /* HAS_CHROOT:
  154.  *    This symbol, if defined, indicates that the chroot routine is
  155.  *    available.
  156.  */
  157. #$d_chroot HAS_CHROOT        /**/
  158.  
  159. /* HAS_CHSIZE:
  160.  *    This symbol, if defined, indicates that the chsize routine is available
  161.  *    to truncate files.  You might need a -lx to get this routine.
  162.  */
  163. #$d_chsize    HAS_CHSIZE        /**/
  164.  
  165. /* VOID_CLOSEDIR:
  166.  *    This symbol, if defined, indicates that the closedir() routine
  167.  *    does not return a value.
  168.  */
  169. #$d_void_closedir VOID_CLOSEDIR        /**/
  170.  
  171. /* HASCONST:
  172.  *    This symbol, if defined, indicates that this C compiler knows about
  173.  *    the const type. There is no need to actually test for that symbol
  174.  *    within your programs. The mere use of the "const" keyword will
  175.  *    trigger the necessary tests.
  176.  */
  177. #$d_const HASCONST    /**/
  178. #ifndef HASCONST
  179. #define const
  180. #endif
  181.  
  182. /* HAS_CRYPT:
  183.  *    This symbol, if defined, indicates that the crypt routine is available
  184.  *    to encrypt passwords and the like.
  185.  */
  186. #$d_crypt HAS_CRYPT        /**/
  187.  
  188. /* HAS_CUSERID:
  189.  *    This symbol, if defined, indicates that the cuserid routine is
  190.  *    available to get character login names.
  191.  */
  192. #$d_cuserid HAS_CUSERID        /**/
  193.  
  194. /* HAS_DBL_DIG:
  195.  *    This symbol, if defined, indicates that this system's <float.h>
  196.  *    or <limits.h> defines the symbol DBL_DIG, which is the number
  197.  *    of significant digits in a double precision number.  If this
  198.  *    symbol is not defined, a guess of 15 is usually pretty good.
  199.  */
  200. #$d_dbl_dig HAS_DBL_DIG     /* */
  201.  
  202. /* HAS_DIFFTIME:
  203.  *    This symbol, if defined, indicates that the difftime routine is
  204.  *    available.
  205.  */
  206. #$d_difftime HAS_DIFFTIME        /**/
  207.  
  208. /* HAS_DLERROR:
  209.  *    This symbol, if defined, indicates that the dlerror routine is
  210.  *    available to return a string describing the last error that
  211.  *    occurred from a call to dlopen(), dlclose() or dlsym().
  212.  */
  213. #$d_dlerror HAS_DLERROR    /**/
  214.  
  215. /* HAS_DUP2:
  216.  *    This symbol, if defined, indicates that the dup2 routine is
  217.  *    available to duplicate file descriptors.
  218.  */
  219. #$d_dup2 HAS_DUP2    /**/
  220.  
  221. /* HAS_FCHMOD:
  222.  *    This symbol, if defined, indicates that the fchmod routine is available
  223.  *    to change mode of opened files.  If unavailable, use chmod().
  224.  */
  225. #$d_fchmod HAS_FCHMOD        /**/
  226.  
  227. /* HAS_FCHOWN:
  228.  *    This symbol, if defined, indicates that the fchown routine is available
  229.  *    to change ownership of opened files.  If unavailable, use chown().
  230.  */
  231. #$d_fchown HAS_FCHOWN        /**/
  232.  
  233. /* HAS_FCNTL:
  234.  *    This symbol, if defined, indicates to the C program that
  235.  *    the fcntl() function exists.
  236.  */
  237. #$d_fcntl HAS_FCNTL        /**/
  238.  
  239. /* HAS_FGETPOS:
  240.  *    This symbol, if defined, indicates that the fgetpos routine is
  241.  *    available to get the file position indicator, similar to ftell().
  242.  */
  243. #$d_fgetpos HAS_FGETPOS    /**/
  244.  
  245. /* FLEXFILENAMES:
  246.  *    This symbol, if defined, indicates that the system supports filenames
  247.  *    longer than 14 characters.
  248.  */
  249. #$d_flexfnam    FLEXFILENAMES        /**/
  250.  
  251. /* HAS_FLOCK:
  252.  *    This symbol, if defined, indicates that the flock routine is
  253.  *    available to do file locking.
  254.  */
  255. #$d_flock HAS_FLOCK        /**/
  256.  
  257. /* HAS_FORK:
  258.  *    This symbol, if defined, indicates that the fork routine is
  259.  *    available.
  260.  */
  261. #$d_fork HAS_FORK        /**/
  262.  
  263. /* HAS_FSETPOS:
  264.  *    This symbol, if defined, indicates that the fsetpos routine is
  265.  *    available to set the file position indicator, similar to fseek().
  266.  */
  267. #$d_fsetpos HAS_FSETPOS    /**/
  268.  
  269. /* HAS_GETGROUPS:
  270.  *    This symbol, if defined, indicates that the getgroups() routine is
  271.  *    available to get the list of process groups.  If unavailable, multiple
  272.  *    groups are probably not supported.
  273.  */
  274. #$d_getgrps HAS_GETGROUPS        /**/
  275.  
  276. /* HAS_GETHOSTENT:
  277.  *    This symbol, if defined, indicates that the gethostent routine is
  278.  *    available to lookup host names in some data base or other.
  279.  */
  280. #$d_gethent HAS_GETHOSTENT        /**/
  281.  
  282. /* HAS_UNAME:
  283.  *    This symbol, if defined, indicates that the C program may use the
  284.  *    uname() routine to derive the host name.  See also HAS_GETHOSTNAME
  285.  *    and PHOSTNAME.
  286.  */
  287. #$d_uname HAS_UNAME        /**/
  288.  
  289. /* HAS_GETLOGIN:
  290.  *    This symbol, if defined, indicates that the getlogin routine is
  291.  *    available to get the login name.
  292.  */
  293. #$d_getlogin HAS_GETLOGIN        /**/
  294.  
  295. /* HAS_GETPGRP:
  296.  *    This symbol, if defined, indicates that the getpgrp routine is
  297.  *    available to get the current process group.
  298.  */
  299. #$d_getpgrp HAS_GETPGRP        /**/
  300.  
  301. /* HAS_GETPGRP2:
  302.  *    This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
  303.  *    routine is available to get the current process group.
  304.  */
  305. #$d_getpgrp2 HAS_GETPGRP2        /**/
  306.  
  307. /* HAS_GETPPID:
  308.  *    This symbol, if defined, indicates that the getppid routine is
  309.  *    available to get the parent process ID.
  310.  */
  311. #$d_getppid HAS_GETPPID        /**/
  312.  
  313. /* HAS_GETPRIORITY:
  314.  *    This symbol, if defined, indicates that the getpriority routine is
  315.  *    available to get a process's priority.
  316.  */
  317. #$d_getprior HAS_GETPRIORITY        /**/
  318.  
  319. /* HAS_HTONL:
  320.  *    This symbol, if defined, indicates that the htonl() routine (and
  321.  *    friends htons() ntohl() ntohs()) are available to do network
  322.  *    order byte swapping.
  323.  */
  324. /* HAS_HTONS:
  325.  *    This symbol, if defined, indicates that the htons() routine (and
  326.  *    friends htonl() ntohl() ntohs()) are available to do network
  327.  *    order byte swapping.
  328.  */
  329. /* HAS_NTOHL:
  330.  *    This symbol, if defined, indicates that the ntohl() routine (and
  331.  *    friends htonl() htons() ntohs()) are available to do network
  332.  *    order byte swapping.
  333.  */
  334. /* HAS_NTOHS:
  335.  *    This symbol, if defined, indicates that the ntohs() routine (and
  336.  *    friends htonl() htons() ntohl()) are available to do network
  337.  *    order byte swapping.
  338.  */
  339. #$d_htonl HAS_HTONL        /**/
  340. #$d_htonl HAS_HTONS        /**/
  341. #$d_htonl HAS_NTOHL        /**/
  342. #$d_htonl HAS_NTOHS        /**/
  343.  
  344. /* HAS_ISASCII:
  345.  *    This manifest constant lets the C program know that isascii 
  346.  *    is available.
  347.  */
  348. #$d_isascii HAS_ISASCII        /**/
  349.  
  350. /* HAS_KILLPG:
  351.  *    This symbol, if defined, indicates that the killpg routine is available
  352.  *    to kill process groups.  If unavailable, you probably should use kill
  353.  *    with a negative process number.
  354.  */
  355. #$d_killpg HAS_KILLPG    /**/
  356.  
  357. /* HAS_LINK:
  358.  *    This symbol, if defined, indicates that the link routine is
  359.  *    available to create hard links.
  360.  */
  361. #$d_link HAS_LINK    /**/
  362.  
  363. /* HAS_LOCALECONV:
  364.  *    This symbol, if defined, indicates that the localeconv routine is
  365.  *    available for numeric and monetary formatting conventions.
  366.  */
  367. #$d_locconv HAS_LOCALECONV    /**/
  368.  
  369. /* HAS_LOCKF:
  370.  *    This symbol, if defined, indicates that the lockf routine is
  371.  *    available to do file locking.
  372.  */
  373. #$d_lockf HAS_LOCKF        /**/
  374.  
  375. /* HAS_LSTAT:
  376.  *    This symbol, if defined, indicates that the lstat routine is
  377.  *    available to do file stats on symbolic links.
  378.  */
  379. #$d_lstat HAS_LSTAT        /**/
  380.  
  381. /* HAS_MBLEN:
  382.  *    This symbol, if defined, indicates that the mblen routine is available
  383.  *    to find the number of bytes in a multibye character.
  384.  */
  385. #$d_mblen HAS_MBLEN        /**/
  386.  
  387. /* HAS_MBSTOWCS:
  388.  *    This symbol, if defined, indicates that the mbstowcs routine is
  389.  *    available to covert a multibyte string into a wide character string.
  390.  */
  391. #$d_mbstowcs    HAS_MBSTOWCS        /**/
  392.  
  393. /* HAS_MBTOWC:
  394.  *    This symbol, if defined, indicates that the mbtowc routine is available
  395.  *    to covert a multibyte to a wide character.
  396.  */
  397. #$d_mbtowc HAS_MBTOWC        /**/
  398.  
  399. /* HAS_MEMCMP:
  400.  *    This symbol, if defined, indicates that the memcmp routine is available
  401.  *    to compare blocks of memory.
  402.  */
  403. #$d_memcmp HAS_MEMCMP    /**/
  404.  
  405. /* HAS_MEMCPY:
  406.  *    This symbol, if defined, indicates that the memcpy routine is available
  407.  *    to copy blocks of memory.
  408.  */
  409. #$d_memcpy HAS_MEMCPY    /**/
  410.  
  411. /* HAS_MEMMOVE:
  412.  *    This symbol, if defined, indicates that the memmove routine is available
  413.  *    to copy potentially overlapping blocks of memory. This should be used
  414.  *    only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
  415.  *    own version.
  416.  */
  417. #$d_memmove HAS_MEMMOVE    /**/
  418.  
  419. /* HAS_MEMSET:
  420.  *    This symbol, if defined, indicates that the memset routine is available
  421.  *    to set blocks of memory.
  422.  */
  423. #$d_memset HAS_MEMSET    /**/
  424.  
  425. /* HAS_MKDIR:
  426.  *    This symbol, if defined, indicates that the mkdir routine is available
  427.  *    to create directories.  Otherwise you should fork off a new process to
  428.  *    exec /bin/mkdir.
  429.  */
  430. #$d_mkdir HAS_MKDIR        /**/
  431.  
  432. /* HAS_MKFIFO:
  433.  *    This symbol, if defined, indicates that the mkfifo routine is
  434.  *    available to create FIFOs. Otherwise, mknod should be able to
  435.  *    do it for you. However, if mkfifo is there, mknod might require
  436.  *    super-user privileges which mkfifo will not.
  437.  */
  438. #$d_mkfifo HAS_MKFIFO        /**/
  439.  
  440. /* HAS_MKTIME:
  441.  *    This symbol, if defined, indicates that the mktime routine is
  442.  *    available.
  443.  */
  444. #$d_mktime HAS_MKTIME        /**/
  445.  
  446. /* HAS_MSG:
  447.  *    This symbol, if defined, indicates that the entire msg*(2) library is
  448.  *    supported (IPC mechanism based on message queues).
  449.  */
  450. #$d_msg HAS_MSG        /**/
  451.  
  452. /* HAS_NICE:
  453.  *    This symbol, if defined, indicates that the nice routine is
  454.  *    available.
  455.  */
  456. #$d_nice HAS_NICE        /**/
  457.  
  458. /* HAS_OPEN3:
  459.  *    This manifest constant lets the C program know that the three
  460.  *    argument form of open(2) is available.
  461.  */
  462. #$d_open3 HAS_OPEN3        /**/
  463.  
  464. /* HAS_PATHCONF:
  465.  *    This symbol, if defined, indicates that pathconf() is available
  466.  *    to determine file-system related limits and options associated
  467.  *    with a given filename.
  468.  */
  469. /* HAS_FPATHCONF:
  470.  *    This symbol, if defined, indicates that pathconf() is available
  471.  *    to determine file-system related limits and options associated
  472.  *    with a given open file descriptor.
  473.  */
  474. #$d_pathconf HAS_PATHCONF        /**/
  475. #$d_fpathconf HAS_FPATHCONF        /**/
  476.  
  477. /* HAS_PAUSE:
  478.  *    This symbol, if defined, indicates that the pause routine is
  479.  *    available to suspend a process until a signal is received.
  480.  */
  481. #$d_pause HAS_PAUSE        /**/
  482.  
  483. /* HAS_PIPE:
  484.  *    This symbol, if defined, indicates that the pipe routine is
  485.  *    available to create an inter-process channel.
  486.  */
  487. #$d_pipe HAS_PIPE        /**/
  488.  
  489. /* HAS_POLL:
  490.  *    This symbol, if defined, indicates that the poll routine is
  491.  *    available to poll active file descriptors.
  492.  */
  493. #$d_poll HAS_POLL        /**/
  494.  
  495. /* HAS_READDIR:
  496.  *    This symbol, if defined, indicates that the readdir routine is
  497.  *    available to read directory entries. You may have to include
  498.  *    <dirent.h>. See I_DIRENT.
  499.  */
  500. #$d_readdir HAS_READDIR        /**/
  501.  
  502. /* HAS_SEEKDIR:
  503.  *    This symbol, if defined, indicates that the seekdir routine is
  504.  *    available. You may have to include <dirent.h>. See I_DIRENT.
  505.  */
  506. #$d_seekdir HAS_SEEKDIR        /**/
  507.  
  508. /* HAS_TELLDIR:
  509.  *    This symbol, if defined, indicates that the telldir routine is
  510.  *    available. You may have to include <dirent.h>. See I_DIRENT.
  511.  */
  512. #$d_telldir HAS_TELLDIR        /**/
  513.  
  514. /* HAS_REWINDDIR:
  515.  *    This symbol, if defined, indicates that the rewinddir routine is
  516.  *    available. You may have to include <dirent.h>. See I_DIRENT.
  517.  */
  518. #$d_rewinddir HAS_REWINDDIR        /**/
  519.  
  520. /* HAS_READLINK:
  521.  *    This symbol, if defined, indicates that the readlink routine is
  522.  *    available to read the value of a symbolic link.
  523.  */
  524. #$d_readlink HAS_READLINK        /**/
  525.  
  526. /* HAS_RENAME:
  527.  *    This symbol, if defined, indicates that the rename routine is available
  528.  *    to rename files.  Otherwise you should do the unlink(), link(), unlink()
  529.  *    trick.
  530.  */
  531. #$d_rename HAS_RENAME    /**/
  532.  
  533. /* HAS_RMDIR:
  534.  *    This symbol, if defined, indicates that the rmdir routine is
  535.  *    available to remove directories. Otherwise you should fork off a
  536.  *    new process to exec /bin/rmdir.
  537.  */
  538. #$d_rmdir HAS_RMDIR        /**/
  539.  
  540. /* HAS_SAFE_BCOPY:
  541.  *    This symbol, if defined, indicates that the bcopy routine is available
  542.  *    to copy potentially overlapping memory blocks. Otherwise you should
  543.  *    probably use memmove() or memcpy(). If neither is defined, roll your
  544.  *    own version.
  545.  */
  546. #$d_safebcpy HAS_SAFE_BCOPY    /**/
  547.  
  548. /* HAS_SAFE_MEMCPY:
  549.  *    This symbol, if defined, indicates that the memcpy routine is available
  550.  *    to copy potentially overlapping memory blocks. Otherwise you should
  551.  *    probably use memmove() or memcpy(). If neither is defined, roll your
  552.  *    own version.
  553.  */
  554. #$d_safemcpy HAS_SAFE_MEMCPY    /**/
  555.  
  556. /* HAS_SELECT:
  557.  *    This symbol, if defined, indicates that the select routine is
  558.  *    available to select active file descriptors. If the timeout field
  559.  *    is used, <sys/time.h> may need to be included.
  560.  */
  561. #$d_select HAS_SELECT    /**/
  562.  
  563. /* HAS_SEM:
  564.  *    This symbol, if defined, inetpair() call is
  565.  *    supported.
  566.  */
  567. #$d_socket HAS_SOCKET        /**/
  568. #$d_sockpair HAS_SOCKETPAIR    /**/
  569.  
  570. /* USE_STAT_BLOCKS:
  571.  *    This symbol is defined if this system has a stat structure declaring
  572.  *    st_blksize and st_blocks.
  573.  */
  574. #$d_statblks USE_STAT_BLOCKS     /**/
  575.  
  576. /* USE_STDIO_PTR:
  577.  *    This symbol is defined if the _ptr and _cnt fields (or similar)
  578.  *    of the stdio FILE structure can be used to access the stdio buffer
  579.  *    for a file handle.  If this is defined, then the FILE_ptr(fp)
  580.  *    and FILE_cnt(fp) macros will also be defined and should be used
  581.  *    to access these fields.
  582.  */
  583. /* USE_STDIO_BASE:
  584.  *    This symbol is defined if the _base field (or similar) of the
  585.  *    stdio FILE structure can be used to access the stdio buffer for
  586.  *    a file handle.  If this is defined, then the FILE_base(fp) macro
  587.  *    will also be defined and should be used to access this field.
  588.  *    Also, the FILE_bufsiz(fp) macro will be defined and should be used
  589.  *    to determine the number of bytes in the buffer.  USE_STDIO_BASE
  590.  *    will never be defined unless USE_STDIO_PTR is.
  591.  */
  592. #$d_stdstdio USE_STDIO_PTR     /**/
  593. #$d_stdiobase USE_STDIO_BASE     /**/
  594.  
  595. /* FILE_ptr:
  596.  *    This macro is used to access the _ptr field (or equivalent) of the
  597.  *    FILE structure pointed to by its argument. This macro will always be
  598.  *    defined if USE_STDIO_PTR is defined.
  599.  */
  600. /* STDIO_PTR_LVALUE:
  601.  *    This symbol is defined if the FILE_ptr macro can be used as an
  602.  *    lvalue.
  603.  */
  604. /* FILE_cnt:
  605.  *    This macro is used to access the _cnt field (or equivalent) of the
  606.  *    FILE structure pointed to by its argument. This macro will always be
  607.  *    defined if USE_STDIO_PTR is defined.
  608.  */
  609. /* STDIO_CNT_LVALUE:
  610.  *    This symbol is defined if the FILE_cnt macro can be used as an
  611.  *    lvalue.
  612.  */
  613. #ifdef USE_STDIO_PTR
  614. #define FILE_ptr(fp)    $stdio_ptr
  615. #$d_stdio_ptr_lval STDIO_PTR_LVALUE         /**/
  616. #define FILE_cnt(fp)    $stdio_cnt
  617. #$d_stdio_cnt_lval STDIO_CNT_LVALUE         /**/
  618. #endif
  619.  
  620. /* FILE_base:
  621.  *    This macro is used to access the _base field (or equivalent) of the
  622.  *    FILE structure pointed to by its argument. This macro will always be
  623.  *    defined if USE_STDIO_BASE is defined.
  624.  */
  625. /* FILE_bufsiz:
  626.  *    This macro is used to determine the number of bytes in the I/O
  627.  *    buffer pointed to by _base field (or equivalent) of the FILE
  628.  *    structure pointed to its argument. This macro will always be defined
  629.  *    if USE_STDIO_BASE is defined.
  630.  */
  631. #ifdef USE_STDIO_BASE
  632. #define FILE_base(fp)    $stdio_base
  633. #define FILE_bufsiz(fp)    $stdio_bufsiz
  634. #endif
  635.  
  636. /* HAS_STRCHR:
  637.  *    This symbol is defined to indicate that the strchr()/strrchr()
  638.  *    functions are available for string searching. If not, try the
  639.  *    index()/rindex() pair.
  640.  */
  641. /* HAS_INDEX:
  642.  *    This symbol is defined to indicate that the index()/rindex()
  643.  *    functions are available for string searching.
  644.  */
  645. #$d_strchr HAS_STRCHR    /**/
  646. #$d_index HAS_INDEX    /**/
  647.  
  648. /* HAS_STRCOLL:
  649.  *    This symbol, if defined, indicates that the strcoll routine is
  650.  *    available to compare strings using collating information.
  651.  */
  652. #$d_strcoll HAS_STRCOLL    /**/
  653.  
  654. /* USE_STRUCT_COPY:
  655.  *    This symbol, if defined, indicates that this C compiler knows how
  656.  *    to copy structures.  If undefined, you'll need to use a block copy
  657.  *    routine of some sort instead.
  658.  */
  659. #$d_strctcpy    USE_STRUCT_COPY    /**/
  660.  
  661. /* HAS_STRERROR:
  662.  *    This symbol, if defined, indicates that the strerror routine is
  663.  *    available to translate error numbers to strings. See the writeup
  664.  *    of Strerror() in this file before you try to define your own.
  665.  */
  666. /* HAS_SYS_ERRLIST:
  667.  *    This symbol, if defined, indicates that the sys_errlist array is
  668.  *    available to translate error numbers to strings. The extern int
  669.  *    sys_nerr gives the size of that table.
  670.  */
  671. /* Strerror:
  672.  *    This preprocessor symbol is defined as a macro if strerror() is
  673.  *    not available to translate error numbers to strings but sys_errlist[]
  674.  *    array is there.
  675.  */
  676. #$d_strerror HAS_STRERROR        /**/
  677. #$d_syserrlst HAS_SYS_ERRLIST    /**/
  678. #define Strerror(e) $d_strerrm
  679.  
  680. /* HAS_STRXFRM:
  681.  *    This symbol, if defined, indicates that the strxfrm() routine is
  682.  *    available to transform strings.
  683.  */
  684. #$d_strxfrm HAS_STRXFRM    /**/
  685.  
  686. /* HAS_SYMLINK:
  687.  *    This symbol, if defined, indicates that the symlink routine is available
  688.  *    to create symbolic links.
  689.  */
  690. #$d_symlink HAS_SYMLINK    /**/
  691.  
  692. /* HAS_SYSCALL:
  693.  *    This symbol, if defined, indicates that the syscall routine is
  694.  *    available to call arbitrary system calls. If undefined, that's tough.
  695.  */
  696. #$d_syscall HAS_SYSCALL    /**/
  697.  
  698. /* HAS_SYSCONF:
  699.  *    This symbol, if defined, indicates that sysconf() is available
  700.  *    to determine system related limits and options.
  701.  */
  702. #$d_sysconf HAS_SYSCONF    /**/
  703.  
  704. /* HAS_SYSTEM:
  705.  *    This symbol, if defined, indicates that the system routine is
  706.  *    available to issue a shell command.
  707.  */
  708. #$d_system HAS_SYSTEM    /**/
  709.  
  710. /* HAS_TCGETPGRP:
  711.  *    This symbol, if defined, indicates that the tcgetpgrp routine is
  712.  *    available to get foreground process group ID.
  713.  */
  714. #$d_tcgetpgrp HAS_TCGETPGRP        /**/
  715.  
  716. /* HAS_TCSETPGRP:
  717.  *    This symbol, if defined, indicates that the tcsetpgrp routine is
  718.  *    available to set foreground process group ID.
  719.  */
  720. #$d_tcsetpgrp HAS_TCSETPGRP        /**/
  721.  
  722. /* Time_t:
  723.  *    This symbol holds the type returned by time(). It can be long,
  724.  *    or time_t on BSD sites (in which case <sys/types.h> should be
  725.  *    included).
  726.  */
  727. #define Time_t $timetype        /* Time type */
  728.  
  729. /* HAS_TIMES:
  730.  *    This symbol, if defined, indicates that the times() routine exists.
  731.  *    Note that this became obsolete on some systems (SUNOS), which now
  732.  * use getrusage(). It may be necessary to include <sys/times.h>.
  733.  */
  734. #$d_times HAS_TIMES        /**/
  735.  
  736. /* HAS_TRUNCATE:
  737.  *    This symbol, if defined, indicates that the truncate routine is
  738.  *    available to truncate files.
  739.  */
  740. #$d_truncate HAS_TRUNCATE    /**/
  741.  
  742. /* HAS_TZNAME:
  743.  *    This symbol, if defined, indicates that the tzname[] array is
  744.  *    available to access timezone names.
  745.  */
  746. #$d_tzname HAS_TZNAME        /**/
  747.  
  748. /* HAS_UMASK:
  749.  *    This symbol, if defined, indicates that the umask routine is
  750.  *    available to set and get the value of the file creation mask.
  751.  */
  752. #$d_umask HAS_UMASK        /**/
  753.  
  754. /* HAS_VFORK:
  755.  *    This symbol, if defined, indicates that vfork() exists.
  756.  */
  757. #$d_vfork HAS_VFORK    /**/
  758.  
  759. /* Signal_t:
  760.  *    This symbol's value is either "void" or "int", corresponding to the
  761.  *    appropriate return type of a signal handler.  Thus, you can declare
  762.  *    a signal handler using "Signal_t (*handler)()", and define the
  763.  *    handler using "Signal_t handler(sig)".
  764.  */
  765. #define Signal_t $signal_t    /* Signal handler's return type */
  766.  
  767. /* HASVOLATILE:
  768.  *    This symbol, if defined, indicates that this C compiler knows about
  769.  *    the volatile declaration.
  770.  */
  771. #$d_volatile    HASVOLATILE    /**/
  772. #ifndef HASVOLATILE
  773. #define volatile
  774. #endif
  775.  
  776. /* HAS_VPRINTF:
  777.  *    This symbol, if defined, indicates that the vprintf routine is available
  778.  *    to printf with a pointer to an argument list.  If unavailable, you
  779.  *    may need to write your own, probably in terms of _doprnt().
  780.  */
  781. /* USE_CHAR_VSPRINTF:
  782.  *    This symbol is defined if this system has vsprintf() returning type
  783.  *    (char*).  The trend seems to be to declare it as "int vsprintf()".  It
  784.  *    is up to the package author to declare vsprintf correctly based on the
  785.  *    symbol.
  786.  */
  787. #$d_vprintf HAS_VPRINTF    /**/
  788. #$d_charvspr USE_CHAR_VSPRINTF     /**/
  789.  
  790. /* HAS_WAIT4:
  791.  *    This symbol, if defined, indicates that wait4() exists.
  792.  */
  793. #$d_wait4 HAS_WAIT4    /**/
  794.  
  795. /* HAS_WAITPID:
  796.  *    This symbol, if defined, indicates that the waitpid routine is
  797.  *    available to wait for child process.
  798.  */
  799. #$d_waitpid HAS_WAITPID    /**/
  800.  
  801. /* HAS_WCSTOMBS:
  802.  *    This symbol, if defined, indicates that the wcstombs routine is
  803.  *    available to convert wide character strings to multibyte strings.
  804.  */
  805. #$d_wcstombs HAS_WCSTOMBS    /**/
  806.  
  807. /* HAS_WCTOMB:
  808.  *    This symbol, if defined, indicates that the wctomb routine is available
  809.  *    to covert a wide character to a multibyte.
  810.  */
  811. #$d_wctomb HAS_WCTOMB        /**/
  812.  
  813. /* Fpos_t:
  814.  *    This symbol holds the type used to declare file positions in libc.
  815.  *    It can be fpos_t, long, uint, etc... It may be necessary to include
  816.  *    <sys/types.h> to get any typedef'ed information.
  817.  */
  818. #define Fpos_t $fpostype        /* File position type */
  819.  
  820. /* Gid_t:
  821.  *    This symbol holds the return type of getgid() and the type of
  822.  *    argument to setrgid() and related functions.  Typically,
  823.  *    it is the type of group ids in the kernel. It can be int, ushort,
  824.  *    uid_t, etc... It may be necessary to include <sys/types.h> to get
  825.  *    any typedef'ed information.
  826.  */
  827. #define Gid_t $gidtype        /* Type for getgid(), etc... */
  828.  
  829. /* Groups_t:
  830.  *    This symbol holds the type used for the second argument to
  831.  *    getgroups().  Usually, this is the same of gidtype, but
  832.  *    sometimes it isn't.  It can be int, ushort, uid_t, etc... 
  833.  *    It may be necessary to include <sys/types.h> to get any 
  834.  *    typedef'ed information.  This is only required if you have
  835.  *    getgroups().
  836.  */
  837. #ifdef HAS_GETGROUPS
  838. #define Groups_t $groupstype    /* Type for 2nd arg to getgroups() */
  839. #endif
  840.  
  841. /* DB_Prefix_t:
  842.  *    This symbol contains the type of the prefix structure element
  843.  *    in the <db.h> header file.  In older versions of DB, it was
  844.  *    int, while in newer ones it is u_int32_t.
  845.  */
  846. /* DB_Hash_t:
  847.  *    This symbol contains the type of the prefix structure element
  848.  *    in the <db.h> header file.  In older versions of DB, it was
  849.  *    int, while in newer ones it is size_t.
  850.  */
  851. #define DB_Hash_t    $db_hashtype        /**/
  852. #define DB_Prefix_t    $db_prefixtype      /**/
  853.  
  854. /* I_DIRENT:
  855.  *    This symbol, if defined, indicates to the C program that it should
  856.  *    include <dirent.h>. Using this symbol also triggers the definition
  857.  *    of the Direntry_t define which ends up being 'struct dirent' or
  858.  *    'struct direct' depending on the availability of <dirent.h>.
  859.  */
  860. /* DIRNAMLEN:
  861.  *    This symbol, if defined, indicates to the C program that the length
  862.  *    of directory entry names is provided by a d_namlen field.  Otherwise
  863.  *    you need to do strlen() on the d_name field.
  864.  */
  865. /* Direntry_t:
  866.  *    This symbol is set to 'struct direct' or 'struct dirent' depending on
  867.  *    whether dirent is available or not. You should use this pseudo type to
  868.  *    portably declare your directory entries.
  869.  */
  870. #$i_dirent I_DIRENT        /**/
  871. #$d_dirnamlen DIRNAMLEN    /**/
  872. #define Direntry_t $direntrytype
  873.  
  874. /* I_DLFCN:
  875.  *    This symbol, if defined, indicates that <dlfcn.h> exists and should
  876.  *    be included.
  877.  */
  878. #$i_dlfcn I_DLFCN        /**/
  879.  
  880. /* I_FCNTL:
  881.  *    This manifest constant tells the C program to include <fcntl.h>.
  882.  */
  883. #$i_fcntl I_FCNTL    /**/
  884.  
  885. /* I_FLOAT:
  886.  *    This symbol, if defined, indicates to the C program that it should
  887.  *    include <float.h> to get definition of symbols like DBL_MAX or
  888.  *    DBL_MIN, i.e. machine dependent floating point values.
  889.  */
  890. #$i_float I_FLOAT        /**/
  891.  
  892. /* I_GRP:
  893.  *    This symbol, if defined, indicates to the C program that it should
  894.  *    include <grp.h>.
  895.  */
  896. #$i_grp I_GRP        /**/
  897.  
  898. /* I_LIMITS:
  899.  *    This symbol, if defined, indicates to the C program that it should
  900.  *    include <limits.h> to get definition of symbols like WORD_BIT or
  901.  *    LONG_MAX, i.e. machine dependant limitations.
  902.  */
  903. #$i_limits I_LIMITS        /**/
  904.  
  905. /* I_MATH:
  906.  *    This symbol, if defined, indicates to the C program that it should
  907.  *    include <math.h>.
  908.  */
  909. #$i_math I_MATH        /**/
  910.  
  911. /* I_MEMORY:
  912.  *    This symbol, if defined, indicates to the C program that it should
  913.  *    include <memory.h>.
  914.  */
  915. #$i_memory I_MEMORY        /**/
  916.  
  917. /* I_NDBM:
  918.  *    This symbol, if defined, indicates that <ndbm.h> exists and should
  919.  *    be included.
  920.  */
  921. #$i_ndbm I_NDBM    /**/
  922.  
  923. /* I_NET_ERRNO:
  924.  *    This symbol, if defined, indicates that <net/errno.h> exists and 
  925.  *    should be included.
  926.  */
  927. #$i_neterrno I_NET_ERRNO        /**/
  928.  
  929. /* I_NETINET_IN:
  930.  *    This symbol, if defined, indicates to the C program that it should
  931.  *    include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
  932.  */
  933. #$i_niin I_NETINET_IN    /**/
  934.  
  935. /* I_PWD:
  936.  *    This symbol, if defined, indicates to the C program that it should
  937.  *    include <pwd.h>.
  938.  */
  939. /* PWQUOTA:
  940.  *    This symbol, if defined, indicates to the C program that struct passwd
  941.  *    contains pw_quota.
  942.  */
  943. /* PWAGE:
  944.  *    This symbol, if defined, indicates to the C program that struct passwd
  945.  *    contains pw_age.
  946.  */
  947. /* PWCHANGE:
  948.  *    This symbol, if defined, indicates to the C program that struct passwd
  949.  *    contains pw_change.
  950.  */
  951. /* PWCLASS:
  952.  *    This symbol, if defined, indicates to the C program that struct passwd
  953.  *    contains pw_class.
  954.  */
  955. /* PWEXPIRE:
  956.  *    This symbol, if defined, indicates to the C program that struct passwd
  957.  *    contains pw_expire.
  958.  */
  959. /* PWCOMMENT:
  960.  *    This symbol, if defined, indicates to the C program that struct passwd
  961.  *    contains pw_comment.
  962.  */
  963. #$i_pwd I_PWD        /**/
  964. #$d_pwquota PWQUOTA    /**/
  965. #$d_pwage PWAGE    /**/
  966. #$d_pwchange PWCHANGE    /**/
  967. #$d_pwclass PWCLASS    /**/
  968. #$d_pwexpire PWEXPIRE    /**/
  969. #$d_pwcomment PWCOMMENT    /**/
  970.  
  971. /* I_STDDEF:
  972.  *    This symbol, if defined, indicates that <stddef.h> exists and should
  973.  *    be included.
  974.  */
  975. #$i_stddef I_STDDEF    /**/
  976.  
  977. /* I_STDLIB:
  978.  *    This symbol, if defined, indicates that <stdlib.h> exists and should
  979.  *    be included.
  980.  */
  981. #$i_stdlib I_STDLIB        /**/
  982.  
  983. /* I_STRING:
  984.  *    This symbol, if defined, indicates to the C program that it should
  985.  *    include <string.h> (USG systems) instead of <strings.h> (BSD systems).
  986.  */
  987. #$i_string I_STRING        /**/
  988.  
  989. /* I_SYS_DIR:
  990.  *    This symbol, if defined, indicates to the C program that it should
  991.  *    include <sys/dir.h>.
  992.  */
  993. #$i_sysdir I_SYS_DIR        /**/
  994.  
  995. /* I_SYS_FILE:
  996.  *    This symbol, if defined, indicates to the C program that it should
  997.  *    include <sys/file.h> to get definition of R_OK and friends.
  998.  */
  999. #$i_sysfile I_SYS_FILE        /**/
  1000.  
  1001. /* I_SYS_IOCTL:
  1002.  *    This symbol, if defined, indicates that <sys/ioctl.h> exists and should
  1003.  *    be included. Otherwise, include <sgtty.h> or <termio.h>.
  1004.  */
  1005. #$i_sysioctl    I_SYS_IOCTL        /**/
  1006.  
  1007. /* I_SYS_NDIR:
  1008.  *    This symbol, if defined, indicates to the C program that it should
  1009.  *    include <sys/ndir.h>.
  1010.  */
  1011. #$i_sysndir I_SYS_NDIR    /**/
  1012.  
  1013. /* I_SYS_PARAM:
  1014.  *    This symbol, if defined, indicates to the C program that it should
  1015.  *    include <sys/param.h>.
  1016.  */
  1017. #$i_sysparam I_SYS_PARAM        /**/
  1018.  
  1019. /* I_SYS_SELECT:
  1020.  *    This symbol, if defined, indicates to the C program that it should
  1021.  *    include <sys/select.h> in order to get definition of struct timeval.
  1022.  */
  1023. #$i_sysselct I_SYS_SELECT    /**/
  1024.  
  1025. /* I_SYS_TIMES:
  1026.  *    This symbol, if defined, indicates to the C program that it should
  1027.  *    include <sys/times.h>.
  1028.  */
  1029. #$i_systimes    I_SYS_TIMES        /**/
  1030.  
  1031. /* I_SYS_TYPES:
  1032.  *    This symbol, if defined, indicates to the C program that it should
  1033.  *    include <sys/types.h>.
  1034.  */
  1035. #$i_systypes    I_SYS_TYPES        /**/
  1036.  
  1037. /* I_SYS_UN:
  1038.  *    This symbol, if defined, indicates to the C program that it should
  1039.  *    include <sys/un.h> to get UNIX domain socket definitions.
  1040.  */
  1041. #$i_sysun I_SYS_UN        /**/
  1042.  
  1043. /* I_TERMIO:
  1044.  *    This symbol, if defined, indicates that the program should include
  1045.  *    <termio.h> rather than <sgtty.h>.  There are also differences in
  1046.  *    the ioctl() calls that depend on the value of this symbol.
  1047.  */
  1048. /* I_TERMIOS:
  1049.  *    This symbol, if defined, indicates that the program should include
  1050.  *    the POSIX termios.h rather than sgtty.h or termio.h.
  1051.  *    There are also differences in the ioctl() calls that depend on the
  1052.  *    value of this symbol.
  1053.  */
  1054. /* I_SGTTY:
  1055.  *    This symbol, if defined, indicates that the program should include
  1056.  *    <sgtty.h> rather than <termio.h>.  There are also differences in
  1057.  *    the ioctl() calls that depend on the value of this symbol.
  1058.  */
  1059. #$i_termio I_TERMIO        /**/
  1060. #$i_termios I_TERMIOS        /**/
  1061. #$i_sgtty I_SGTTY        /**/
  1062.  
  1063. /* I_TIME:
  1064.  *    This symbol, if defined, indicates to the C program that it should
  1065.  *    include <time.h>.
  1066.  */
  1067. /* I_SYS_TIME:
  1068.  *    This symbol, if defined, indicates to the C program that it should
  1069.  *    include <sys/time.h>.
  1070.  */
  1071. /* I_SYS_TIME_KERNEL:
  1072.  *    This symbol, if defined, indicates to the C program that it should
  1073.  *    include <sys/time.h> with KERNEL defined.
  1074.  */
  1075. #$i_time I_TIME        /**/
  1076. #$i_systime I_SYS_TIME        /**/
  1077. #$i_systimek I_SYS_TIME_KERNEL        /**/
  1078.  
  1079. /* I_UNISTD:
  1080.  *    This symbol, if defined, indicates to the C program that it should
  1081.  *    include <unistd.h>.
  1082.  */
  1083. #$i_unistd I_UNISTD        /**/
  1084.  
  1085. /* I_UTIME:
  1086.  *    This symbol, if defined, indicates to the C program that it should
  1087.  *    include <utime.h>.
  1088.  */
  1089. #$i_utime I_UTIME        /**/
  1090.  
  1091. /* I_VFORK:
  1092.  *    This symbol, if defined, indicates to the C program that it should
  1093.  *    include vfork.h.
  1094.  */
  1095. #$i_vfork I_VFORK    /**/
  1096.  
  1097. /* Off_t:
  1098.  *    This symbol holds the type used to declare offsets in the kernel.
  1099.  *    It can be int, long, off_t, etc... It may be necessary to include
  1100.  *    <sys/types.h> to get any typedef'ed information.
  1101.  */
  1102. #define Off_t $lseektype        /* <offset> type */
  1103.  
  1104. /* Mode_t:
  1105.  *    This symbol holds the type used to declare file modes 
  1106.  *    for systems calls.  It is usually mode_t, but may be
  1107.  *    int or unsigned short.  It may be necessary to include <sys/types.h>
  1108.  *    to get any typedef'ed information.
  1109.  */
  1110. #define Mode_t $modetype     /* file mode parameter for system calls */
  1111.  
  1112. /* CAN_PROTOTYPE:
  1113.  *    If defined, this macro indicates that the C compiler can handle
  1114.  *    function prototypes.
  1115.  */
  1116. /* _:
  1117.  *    This macro is used to declare function parameters for folks who want
  1118.  *    to make declarations with prototypes using a different style than
  1119.  *    the above macros.  Use double parentheses.  For example:
  1120.  *
  1121.  *        int main _((int argc, char *argv[]));
  1122.  */
  1123. #$prototype    CAN_PROTOTYPE    /**/
  1124. #ifdef CAN_PROTOTYPE
  1125. #define    _(args) args
  1126. #else
  1127. #define    _(args) ()
  1128. #endif
  1129.  
  1130. /* RANDBITS:
  1131.  *    This symbol contains the number of bits of random number the rand()
  1132.  *    function produces.  Usual values are 15, 16, and 31.
  1133.  */
  1134. #define RANDBITS $randbits        /**/
  1135.  
  1136. /* SCRIPTDIR:
  1137.  *    This symbol holds the name of the directory in which the user wants
  1138.  *    to put publicly executable scripts for the package in question.  It
  1139.  *    is often a directory that is mounted across diverse architectures.
  1140.  *    Programs must be prepared to deal with ~name expansion.
  1141.  */
  1142. #define SCRIPTDIR "$scriptdir"    /**/
  1143.  
  1144. /* Select_fd_set_t:
  1145.  *    This symbol holds the type used for the 2nd, 3rd, and 4th
  1146.  *    arguments to select.  Usually, this is 'fd_set *', if HAS_FD_SET
  1147.  *    is defined, and 'int *' otherwise.  This is only useful if you 
  1148.  *    have select(), of course.
  1149.  */
  1150. #define Select_fd_set_t     $selecttype    /**/
  1151.  
  1152. /* Size_t:
  1153.  *    This symbol holds the type used to declare length parameters
  1154.  *    for string functions.  It is usually size_t, but may be
  1155.  *    unsigned long, int, etc.  It may be necessary to include
  1156.  *    <sys/types.h> to get any typedef'ed information.
  1157.  */
  1158. #define Size_t $sizetype     /* length paramater for string functions */
  1159.  
  1160. /* SSize_t:
  1161.  *    This symbol holds the type used by functions that return
  1162.  *    a count of bytes or an error condition.  It must be a signed type.
  1163.  *    It is usually ssize_t, but may be long or int, etc.
  1164.  *    It may be necessary to include <sys/types.h> or <unistd.h>
  1165.  *    to get any typedef'ed information.
  1166.  *    We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
  1167.  */
  1168. #define SSize_t $ssizetype     /* signed count of bytes */
  1169.  
  1170. /* STDCHAR:
  1171.  *    This symbol is defined to be the type of char used in stdio.h.
  1172.  *    It has the values "unsigned char" or "char".
  1173.  */
  1174. #define STDCHAR $stdchar    /**/
  1175.  
  1176. /* Uid_t:
  1177.  *    This symbol holds the type used to declare user ids in the kernel.
  1178.  *    It can be int, ushort, uid_t, etc... It may be necessary to include
  1179.  *    <sys/types.h> to get any typedef'ed information.
  1180.  */
  1181. #define Uid_t $uidtype        /* UID type */
  1182.  
  1183. /* VMS:
  1184.  *    This symbol, if defined, indicates that the program is running under
  1185.  *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  1186.  */
  1187. #$d_eunice VMS        /**/
  1188.  
  1189. /* LOC_SED:
  1190.  *    This symbol holds the complete pathname to the sed program.
  1191.  */
  1192. #define LOC_SED     "$full_sed"    /**/
  1193.  
  1194. /* ARCHLIB_EXP:
  1195.  *    This symbol contains the ~name expanded version of ARCHLIB, to be used
  1196.  *    in programs that are not prepared to deal with ~ expansion at run-time.
  1197.  */
  1198. #$d_archlib ARCHLIB_EXP "$archlibexp"        /**/
  1199.  
  1200. /* OSNAME:
  1201.  *    This symbol contains the name of the operating system, as determined
  1202.  *    by Configure.
  1203.  */
  1204. #define OSNAME "$osname"        /**/
  1205.  
  1206. /* BYTEORDER:
  1207.  *    This symbol hold the hexadecimal constant defined in byteorder,
  1208.  *    i.e. 0x1234 or 0x4321, etc...
  1209.  */
  1210. #define BYTEORDER 0x$byteorder    /* large digits for MSB */
  1211.  
  1212. /* CSH:
  1213.  *    This symbol, if defined, indicates that the C-shell exists.
  1214.  *    If defined, contains the full pathname of csh.
  1215.  */
  1216. #$d_csh CSH "$full_csh"        /**/
  1217.  
  1218. /* DLSYM_NEEDS_UNDERSCORE:
  1219.  *    This symbol, if defined, indicates that we need to prepend an
  1220.  *    underscore to the symbol name before calling dlsym().  This only
  1221.  *    makes sense if you *have* dlsym, which we will presume is the
  1222.  *    case if you're using dl_dlopen.xs.
  1223.  */
  1224. #$d_dlsymun     DLSYM_NEEDS_UNDERSCORE     /* */
  1225.  
  1226. /* SETUID_SCRIPTS_ARE_SECURE_NOW:
  1227.  *    This symbol, if defined, indicates that the bug that prevents
  1228.  *    setuid scripts from being secure is not present in this kernel.
  1229.  */
  1230. /* DOSUID:
  1231.  *    This symbol, if defined, indicates that the C program should
  1232.  *    check the script that it is executing for setuid/setgid bits, and
  1233.  *    attempt to emulate setuid/setgid on systems that have disabled
  1234.  *    setuid #! scripts because the kernel can't do it securely.
  1235.  *    It is up to the package designer to make sure that this emulation
  1236.  *    is done securely.  Among other things, it should do an fstat on
  1237.  *    the script it just opened to make sure it really is a setuid/setgid
  1238.  *    script, it should make sure the arguments passed correspond exactly
  1239.  *    to the argument on the #! line, and it should not trust any
  1240.  *    subprocesses to which it must pass the filename rather than the
  1241.  *    file descriptor of the script to be executed.
  1242.  */
  1243. #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW    /**/
  1244. #$d_dosuid DOSUID        /**/
  1245.  
  1246. /* Gconvert:
  1247.  *    This preprocessor macro is defined to convert a floating point
  1248.  *    number to a string without a trailing decimal point.  This
  1249.  *    emulates the behavior of sprintf("%g"), but is sometimes much more
  1250.  *    efficient.  If gconvert() is not available, but gcvt() drops the
  1251.  *    trailing decimal point, then gcvt() is used.  If all else fails,
  1252.  *    a macro using sprintf("%g") is used. Arguments for the Gconvert
  1253.  *    macro are: value, number of digits, whether trailing zeros should
  1254.  *    be retained, and the output buffer.
  1255.  *    Possible values are:
  1256.  *        d_Gconvert='gconvert((x),(n),(t),(b))'
  1257.  *        d_Gconvert='gcvt((x),(n),(b))'
  1258.  *        d_Gconvert='sprintf((b),"%.*g",(n),(x))'
  1259.  *    The last two assume trailing zeros should not be kept.
  1260.  */
  1261. #define Gconvert(x,n,t,b) $d_Gconvert
  1262.  
  1263. /* Sigjmp_buf:
  1264.  * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
  1265.  */
  1266. /* Sigsetjmp:
  1267.  * This macro is used in the same way as sigsetjmp(), but will invoke
  1268.  * traditional setjmp() if sigsetjmp isn't available.
  1269.  */
  1270. /* Siglongjmp:
  1271.  * This macro is used in the same way as siglongjmp(), but will invoke
  1272.  * traditional longjmp() if siglongjmp isn't available.
  1273.  */
  1274. #$d_sigsetjmp HAS_SIGSETJMP    /**/
  1275. #ifdef HAS_SIGSETJMP
  1276. #define Sigjmp_buf sigjmp_buf
  1277. #define Sigsetjmp(buf,save_mask) sigsetjmp(buf,save_mask)
  1278. #define Siglongjmp(buf,retval) siglongjmp(buf,retval)
  1279. #else
  1280. #define Sigjmp_buf jmp_buf
  1281. #define Sigsetjmp(buf,save_mask) setjmp(buf)
  1282. #define Siglongjmp(buf,retval) longjmp(buf,retval)
  1283. #endif
  1284.  
  1285. /* USE_DYNAMIC_LOADING:
  1286.  *    This symbol, if defined, indicates that dynamic loading of
  1287.  *    some sort is available.
  1288.  */
  1289. #$usedl USE_DYNAMIC_LOADING        /**/
  1290.  
  1291. /* I_DBM:
  1292.  *    This symbol, if defined, indicates that <dbm.h> exists and should
  1293.  *    be included.
  1294.  */
  1295. /* I_RPCSVC_DBM:
  1296.  *    This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
  1297.  *    should be included.
  1298.  */
  1299. #$i_dbm I_DBM    /**/
  1300. #$i_rpcsvcdbm I_RPCSVC_DBM    /**/
  1301.  
  1302. /* I_LOCALE:
  1303.  *    This symbol, if defined, indicates to the C program that it should
  1304.  *    include <locale.h>.
  1305.  */
  1306. #$i_locale    I_LOCALE        /**/
  1307.  
  1308. /* I_SYS_STAT:
  1309.  *    This symbol, if defined, indicates to the C program that it should
  1310.  *    include <sys/stat.h>.
  1311.  */
  1312. #$i_sysstat    I_SYS_STAT        /**/
  1313.  
  1314. /* I_STDARG:
  1315.  *    This symbol, if defined, indicates that <stdarg.h> exists and should
  1316.  *    be included.
  1317.  */
  1318. /* I_VARARGS:
  1319.  *    This symbol, if defined, indicates to the C program that it should
  1320.  *    include <varargs.h>.
  1321.  */
  1322. #$i_stdarg I_STDARG        /**/
  1323. #$i_varargs I_VARARGS    /**/
  1324.  
  1325. /* INTSIZE:
  1326.  *    This symbol contains the size of an int, so that the C preprocessor
  1327.  *    can make decisions based on it.
  1328.  */
  1329. #define INTSIZE $intsize        /**/
  1330.  
  1331. /* Free_t:
  1332.  *    This variable contains the return type of free().  It is usually
  1333.  * void, but occasionally int.
  1334.  */
  1335. /* Malloc_t:
  1336.  *    This symbol is the type of pointer returned by malloc and realloc.
  1337.  */
  1338. #define Malloc_t $malloctype            /**/
  1339. #define Free_t $freetype            /**/
  1340.  
  1341. /* MYMALLOC:
  1342.  *    This symbol, if defined, indicates that we're using our own malloc.
  1343.  */
  1344. #$d_mymalloc MYMALLOC            /**/
  1345.  
  1346. /* VAL_O_NONBLOCK:
  1347.  *    This symbol is to be used during open() or fcntl(F_SETFL) to turn on
  1348.  *    non-blocking I/O for the file descriptor. Note that there is no way
  1349.  *    back, i.e. you cannot turn it blocking again this way. If you wish to
  1350.  *    alternatively switch between blocking and non-blocking, use the
  1351.  *    ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
  1352.  */
  1353. /* VAL_EAGAIN:
  1354.  *    This symbol holds the errno error code set by read() when no data was
  1355.  *    present on the non-blocking file descriptor.
  1356.  */
  1357. /* RD_NODATA:
  1358.  *    This symbol holds the return code from read() when no data is present
  1359.  *    on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
  1360.  *    not defined, then you can't distinguish between no data and EOF by
  1361.  *    issuing a read(). You'll have to find another way to tell for sure!
  1362.  */
  1363. /* EOF_NONBLOCK:
  1364.  *    This symbol, if defined, indicates to the C program that a read() on
  1365.  *    a non-blocking file descriptor will return 0 on EOF, and not the value
  1366.  *    held in RD_NODATA (-1 usually, in that case!).
  1367.  */
  1368. #define VAL_O_NONBLOCK $o_nonblock
  1369. #define VAL_EAGAIN $eagain
  1370. #define RD_NODATA $rd_nodata
  1371. #$d_eofnblk EOF_NONBLOCK
  1372.  
  1373. /* OLDARCHLIB_EXP:
  1374.  *    This symbol contains the ~name expanded version of OLDARCHLIB, to be
  1375.  *    used in programs that are not prepared to deal with ~ expansion at 
  1376.  *    run-time.
  1377.  */
  1378. #$d_oldarchlib OLDARCHLIB_EXP "$oldarchlibexp"        /**/
  1379.  
  1380. /* PRIVLIB_EXP:
  1381.  *    This symbol contains the ~name expanded version of PRIVLIB, to be used
  1382.  *    in programs that are not prepared to deal with ~ expansion at run-time.
  1383.  */
  1384. #define PRIVLIB_EXP "$privlibexp"        /**/
  1385.  
  1386. /* SIG_NAME:
  1387.  *    This symbol contains a list of signal names in order of
  1388.  *    signal number. This is intended
  1389.  *    to be used as a static array initialization, like this:
  1390.  *        char *sig_name[] = { SIG_NAME };
  1391.  *    The signals in the list are separated with commas, and each signal
  1392.  *    is surrounded by double quotes. There is no leading SIG in the signal
  1393.  *    name, i.e. SIGQUIT is known as "QUIT".
  1394.  *    Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
  1395.  *    etc., where nn is the actual signal number (e.g. NUM37).
  1396.  *    The signal number for sig_name[i] is stored in sig_num[i].
  1397.  *    The last element is 0 to terminate the list with a NULL.  This
  1398.  *    corresponds to the 0 at the end of the sig_num list.
  1399.  */
  1400. /* SIG_NUM:
  1401.  *    This symbol contains a list of signal numbers, in the same order as the
  1402.  *    SIG_NAME list. It is suitable for static array initialization, as in:
  1403.  *        int sig_num[] = { SIG_NUM };
  1404.  *    The signals in the list are separated with commas, and the indices
  1405.  *    within that list and the SIG_NAME list match, so it's easy to compute
  1406.  *    the signal name from a number or vice versa at the price of a small
  1407.  *    dynamic linear lookup. 
  1408.  *    Duplicates are allowed, but are moved to the end of the list.
  1409.  *    The signal number corresponding to sig_name[i] is sig_number[i].
  1410.  *    if (i < NSIG) then sig_number[i] == i.  
  1411.  *    The last element is 0, corresponding to the 0 at the end of
  1412.  *    the sig_name list.
  1413.  */
  1414. #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`",0    /**/
  1415. #define SIG_NUM `echo $sig_num 0 | sed 's/ /,/g'`    /**/
  1416.  
  1417. /* SITEARCH_EXP:
  1418.  *    This symbol contains the ~name expanded version of SITEARCH, to be used
  1419.  *    in programs that are not prepared to deal with ~ expansion at run-time.
  1420.  */
  1421. #define SITEARCH_EXP "$sitearchexp"        /**/
  1422.  
  1423. /* SITELIB_EXP:
  1424.  *    This symbol contains the ~name expanded version of SITELIB, to be used
  1425.  *    in programs that are not prepared to deal with ~ expansion at run-time.
  1426.  */
  1427. #define SITELIB_EXP "$sitelibexp"        /**/
  1428.  
  1429. /* STARTPERL:
  1430.  *    This variable contains the string to put in front of a perl
  1431.  *    script to make sure (one hopes) that it runs with perl and not
  1432.  *    some shell.
  1433.  */
  1434. #define STARTPERL "$startperl"        /**/
  1435.  
  1436. /* VOIDFLAGS:
  1437.  *    This symbol indicates how much support of the void type is given by this
  1438.  *    compiler.  What various bits mean:
  1439.  *
  1440.  *        1 = supports declaration of void
  1441.  *        2 = supports arrays of pointers to functions returning void
  1442.  *        4 = supports comparisons between pointers to void functions and
  1443.  *            addresses of void functions
  1444.  *        8 = suports declaration of generic void pointers
  1445.  *
  1446.  *    The package designer should define VOIDUSED to indicate the requirements
  1447.  *    of the package.  This can be done either by #defining VOIDUSED before
  1448.  *    including config.h, or by defining defvoidused in Myinit.U.  If the
  1449.  *    latter approach is taken, only those flags will be tested.  If the
  1450.  *    level of void support necessary is not present, defines void to int.
  1451.  */
  1452. #ifndef VOIDUSED
  1453. #define VOIDUSED $defvoidused
  1454. #endif
  1455. #define VOIDFLAGS $voidflags
  1456. #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
  1457. #define void int        /* is void to be avoided? */
  1458. #define M_VOID            /* Xenix strikes again */
  1459. #endif
  1460.  
  1461. #endif
  1462. !GROK!THIS!
  1463.